Dynomotion

Group: DynoMotion Message: 5390 From: fchopinqc Date: 7/1/2012
Subject: KFLOP command hook event before and after
Hi, Is it possible to intercept a G-code command on the FKLOP and do some do action like setting a bit before and after the command. For my application timing is critical a few milisec. I must do something just before and after an G-Code line is send to the KFLOP for execution. (Trans-coded I should say to the KFLOP)


Thanks.
Fred
Group: DynoMotion Message: 5402 From: Tom Kerekes Date: 7/2/2012
Subject: Re: KFLOP command hook event before and after
Hi Fred,
 
The PC, MS Windows, and consequentially the USB are not real time, which is why motion commands need to be buffered within KFLOP, so I don't think you want to do things before or after data is sent to KFLOP.  Do so could have huge delays.  KMotionCNC allows you to include SetBitBuf and ClearBitBuf Console commands into the Motion Data Stream. This allows IO to switch synchronously with motion.  Also Switching a Virtual IO bit can be used to trigger something in a KFLOP USer Program if you wish.  Can you use that mechanism?
 
Regards
TK